#include "Wire.h"
#include "Ticker.h"
#include "bs818.h"
#include "rtc.h"
#include "sht.h"
#include "disp.h"
#include "wifi.h"
#include "WiFiManager.h"
#include "weather.h"
#include <ESP8266WiFiMulti.h>
#include "task.h"
#include "EEPROM.h"

ESP8266WiFiMulti WiFiMulti;

const char *ssid     = "IceSu";
const char *password = "2ap99018";

void setup(void)
{
    // WiFi.mode(WIFI_AP_STA);
    // WiFi.begin(ssid, password);   
    // WiFi.setAutoConnect(true);
    // WiFi.setAutoReconnect(true);
    Serial.begin(115200);
    initWiFi();
    // Wire.setClock(10000);
    Wire.begin();
    shtInit();
    rtcInit();
    touchInit();
    rgbInit();
    // smartConfig();
    taskStart();
}

void loop(void)
{
    taskRun();
}